<?php
/* * *********************************************************
 * Copyright (C) 2010-2012 by Lifire
 * All rights reserved.
 * 
 * Filename: 
 * Description: 
 * 
 * Created by Lifire at 2010-11-18
 * Email:yunzhi.li.08@gmail.com
 * **********************************************************
 */
?>
<include file="Public:header"/>

<div id="wrap">
    <div id="left">
        <div class="position">当前位置:&nbsp;雅美在线订单</div>
        <div class="guestbook">
            <span class="title">雅美在线订单</span>
            <ul>
                <form name="form1" method="post" action="__URL__/add">
                    <li><span>说明：</span>（<font color="#FF0000">*</font>）的输入框必须输入内容</li>
                    <li><span></span><font color="#FF0000">在线下订单之后，网站管理员将在次日上午进行订单统计并安排设计师与您沟通！</font></li>
                    <li><span>您的姓名：&nbsp;<font color="#FF0000">*</font></span><input type="text" name="name" size="30"></li>
                    <li><span>称呼：</span><div><div id="female"><input type="radio" checked="checked" name="gender" value="1" /><span>女士</span></div>&nbsp;
                            <div id="male"><input type="radio" name="gender" value="0" /><span>先生</span></div></div></li>
                    <li><span>您的电话：&nbsp;<font color="#FF0000">*</font></span><input type="text" name="tel" size="30"></li>
                    <li><span>电子邮箱：</span><input type="text" name="email" size="30"></li>
                    <li><span>装修面积：</span><input type="text" name="area" size="30"></li>
                    <li><span>户型：</span><input type="text" name="housetype" size="30"></li>
                    <li><span>装修风格：</span><input type="text" name="style" size="30"></li>
                    <li><span>价格要求：</span><input type="text" name="price" size="30"></li>
                    <li><span>您的地址：&nbsp;<font color="#FF0000">*</font></span><input type="text" name="address" size="60"></li>
                    <li><span>其他要求：</span><textarea name="other" rows="6" cols="60"></textarea></li>
                    <li><span>验证码：</span><input type="text" name="verify" size="10">
                        <img src="__URL__/verify" alt="看不清请刷新" />（请输入图片中的数字）
                    </li>
                    <li><input type="submit" class="mybutton" name="add" value="提  交"></li>
                </form>
            </ul>
        </div>

        <div class="clear"></div>
    </div>

    <div id="right">
        <div class="category-title">
            <div class="catimg"><img src="../Public/images/data-cat.jpg" alt="资料分类" /></div>
        </div>
        <div class="category-nav"></div>
        <div class="category-list">
            <ul>
                <php>include(C("MYCACHE_PATH").'/datacat.php');</php>
                <php>foreach($datacat as $key=>$value){</php>
                <li><a href="__APP__/Data/index/catid/{$key}">{$value}</a></li>
                <php>}</php>
            </ul>
        </div>

        <div class="knowledge-title">
            <div class="annimg"><img src="../Public/images/knowledge.jpg" alt="装修须知" /></div>
            <div class="more"><a href="__APP__/Knowledge"><img src="../Public/images/more.gif" /></a></div>
        </div>
        <div class="knowledge-nav"></div>
        <div class="knowledge-list">
            <ul>
                <php>include(C('MYCACHE_PATH').'/knowledge.php');</php>
                <iterate name="knowledge" id="row">
                    <li><a href="__APP__/Knowledge/{$row['url']}">{$row['title']}</a></li>
                </iterate>
            </ul>
        </div>

        <div class="order-title">
            <div class="orderimg"><img src="../Public/images/order.jpg" alt="订单人员" /></div>
        </div>
        <div id="order-list">
            <ul>
                <iterate name="list" id="row">
                    <li>
                        <span class="ordername">{$row['name']}</span>
                        <span class="ordertime">{$row['addtime']|date='Y-m-d H:i:s',###}</span>
                    </li>
                </iterate>
            </ul>
        </div>

        <div class="contactus">
            <a href="__APP__/Page/contactus.html"><img src="../Public/images/contactus.gif" alt="联系我们"></a>
        </div>                
        <div class="clear"></div>
    </div>
</div>

<script type="text/javascript">
    var scrollElem;
    var stopscroll;
    var stoptime;
    var preTop;
    var leftElem;
    var currentTop;
    var marqueesHeight;
    var scrollObj;
    function marque(width,height,marqueName){
        try{
            marqueesHeight = height;
            stopscroll     = false;

            scrollElem = document.getElementById(marqueName);
            with(scrollElem){
                scrollElem.style.width = width;
                scrollElem.style.height = marqueesHeight;
                style.overflow  = 'hidden';
                noWrap = true;
            }

            scrollElem.onmouseover = new Function('stopscroll = true');
            scrollElem.onmouseout  = new Function('stopscroll = false');

            preTop     = 0;
            currentTop = 0;
            stoptime   = 0;

            init_srolltext();

        }catch(e) {}
    }
    function init_srolltext(){
        if(scrollObj)clearInterval(scrollObj);//递归，当我调用自己的时候要清除上一个setInterval对象
        scrollElem.scrollTop = 0;
        scrollObj=setInterval('scrollUp()', 30);//速度
    }

    function scrollUp(){
        if(stopscroll) return;
        currentTop += 1;
        if(currentTop == marqueesHeight+1) {
            currentTop = 0;
            stoptime = 0;
            init_srolltext();//递归调用
        }else{
            preTop = scrollElem.scrollTop;
            scrollElem.scrollTop += 1;
            if(preTop == scrollElem.scrollTop){
                scrollElem.scrollTop = marqueesHeight;
                scrollElem.scrollTop += 1;
            }
        }
    }
    marque("278px","200px","order-list");//滚动(当内容小于260px是不会滚动的，也没必要)

</script>



<include file="Public:footer"/>